import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  // 设置二级路由的组件中的内容显示在父组件中
  children: [
    {
      path: '', // 写空 默认匹配父路由
      name: 'employees',
      component: () => import('@/views/employees/employees.vue'),
      meta: { title: '员工管理', icon: 'group-fill' }
    },
    {
      hidden: true, // 禁止在侧边栏显示
      path: 'detail/:id', //
      name: 'detail',
      component: () => import('@/views/employees/detail.vue')
      // meta: { title: '员工管理', icon: 'group-fill' }
    }
  ]
}
